package photobox.photo

/**
 * 相框定义
 */
class PhotoFrame {

    String   name  //相框名称
    String   description  //描述
    Integer   isDeal   //是否允许销售

    static final int IS_DEAL_NO = 0
    static final int IS_DEAL_YES = 1

    static mapping = {
        table 'pht_photo_frame'
    }

    static constraints = {
        name  size: 0..30
        description  size: 0..500
        isDeal  inList: [IS_DEAL_NO, IS_DEAL_YES]
    }
}
